package org.ttitfly.ttcore.util.dozer;

import net.sf.dozer.util.mapping.DozerBeanMapper;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class DozerBeanMapperFactory {

    private static final Log log = LogFactory.getLog(DozerBeanMapperFactory.class);

    private static DozerBeanMapper mapp = null;;

    public static DozerBeanMapper getMapper() {
        if (mapp == null) {
            mapp = new DozerBeanMapper();
            // FIXME
            /*
             * List<String> mappingFiles = new ArrayList<String>();
             * mappingFiles.add("dozerBeanMapping.xml");
             * mapp.setMappingFiles(mappingFiles);
             */
            log.info("Dozer init successfully!");
        }
        return mapp;
    }

}
